From: Nikos Mavrogiannopoulos Date: Sat, 26 Jul 2014 08:29:56 +0000 (+0200) Subject: luci-app-ocserv: restart service on user add/remove X-Git-Tag: v14.07~66 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=44c96038c47280a85fe3cbd95e47aa700ac7a60c;p=feed%2Fpackages.git luci-app-ocserv: restart service on user add/remove Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua b/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua index 0a4a6786cb..35c20fc648 100644 --- a/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua +++ b/net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua @@ -22,7 +22,7 @@ if m.uci:get("ocserv", "config", "auth") == "plain" then --[[Users]]-- function m.on_commit(map) - luci.sys.call("/usr/bin/occtl reload >/dev/null 2>&1") + luci.sys.call("/etc/init.d/ocserv restart >/dev/null 2>&1") end s = m:section(TypedSection, "ocservusers", translate("Available users"))